<%-- 
    Document   : EL1
    Created on : 2014/8/18, 下午 03:19:40
    Author     : Yu
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>


<%
    request.setAttribute("x", "Hi-EL");
    session.setAttribute("y", "Hello");
    application.setAttribute("z", "World");
    request.setAttribute("y", "y");
    request.setAttribute("z", "z");


%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>EL1</title>
    </head>
    <body>
        <h1>_________EL1________</h1>
	${x}<br>
	${sessionScope.y}<br>
	${applicationScope.z}<br>
	<%=request.getParameter("id")%> <br>
	${param.id}
	<c:if test="${param.id ==null}">
	    沒輸入ID:
	</c:if><br>
	<c:if test="${empty param.id}">
	    沒輸入ID2:
	</c:if>
    </body>
</html>
